package com.literature.threeGroup.mapper;

import com.literature.threeGroup.pojo.ResourceInfo;
import com.literature.threeGroup.pojo.ResourceInfoExample;
import com.literature.threeGroup.pojo.ResourceInfoWithBLOBs;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Component;


import java.util.List;
@Component
public interface ResourceInfoMapper {
    long countByExample(ResourceInfoExample example);

    int deleteByExample(ResourceInfoExample example);

    int deleteByPrimaryKey(String id);

    int insert(ResourceInfoWithBLOBs record);

    int insertSelective(ResourceInfoWithBLOBs record);

    List<ResourceInfoWithBLOBs> selectByExampleWithBLOBs(ResourceInfoExample example);

    List<ResourceInfo> selectByExample(ResourceInfoExample example);

    ResourceInfoWithBLOBs selectByPrimaryKey(String id);

    int updateByExampleSelective(@Param("record") ResourceInfoWithBLOBs record, @Param("example") ResourceInfoExample example);

    int updateByExampleWithBLOBs(@Param("record") ResourceInfoWithBLOBs record, @Param("example") ResourceInfoExample example);

    int updateByExample(@Param("record") ResourceInfo record, @Param("example") ResourceInfoExample example);

    int updateByPrimaryKeySelective(ResourceInfoWithBLOBs record);

    int updateByPrimaryKeyWithBLOBs(ResourceInfoWithBLOBs record);

    int updateByPrimaryKey(ResourceInfo record);
    //查询待遴选的状态  为1
    List<ResourceInfo> findStatusDselect(ResourceInfo resourceInfo);
    //修改资源表中的状态值 批量  动态sql
    void UpdateStatus(@Param("idList") String[] idList, @Param("distributionStatus") int distributionStatus);
    //查询单条资源数据
    ResourceInfoWithBLOBs findOne(@Param("id") String id);
    //根据id查询出批量同意的数据
    List<ResourceInfoWithBLOBs> selectResources(@Param("ids") String[] ids);

    List findMaintainList();

    ResourceInfo findById(String id);

    List<ResourceInfo> finaAll2(ResourceInfo resourceInfo);

    List<ResourceInfo> queryDevied();

    ResourceInfo findResourceId(String id);
}